package com.example.demo.myException;

/**
 * 自己定义的异常类
 */
public class MyDefineException extends Exception {

    private static final long serialVersionUID = 1L;

    public MyDefineException(String msg) {
        super(msg);// 把参数传递给Throwable的带String参数的构造方法
    }
}
